<?php foreach ($courses as $course): ?>
<h3 class="alt">Categoria:<?php echo $course->getCategory()->getName();?></h3>
<h3 class="alt"><?php echo $course->getDateTimeObject('created_at')->format('d-m-Y');?></h3>
<div style="cursor:pointer;" class="ui-widget ui-widget-content ui-corner-all">
<a href="<?php echo url_for("course_lessons",$course);?>"><h2 style="width: 100%" class="ui-widget-header"><?php echo $course->getName();?></h2></a>
<p><?php echo $course->getDescription();?></p>
</div>
<hr />
<hr />
<?php endforeach; ?>
<?php if($pager->haveToPaginate()):?>
<?php include_partial('navigation',array('pager'=>$pager))?>
<?php endif;?>